/**
 * Created with IntelliJ IDEA.
 * User: wenxiwen
 * Date: 2022/3/26
 * Time: 15:13
 * Description: No Description
 */

class Person {
    public String name;
    public int age;
    public char Sex;
    public int Score;


    public Person(String name, int age, char sex, int score) {
        this.name = name;
        this.age = age;
        Sex = sex;
        Score = score;
    }

    public void Myprint(String name, int age, char Sex, int Score) {
        this.sleep();
        this.type();
        this.Sex = Sex;
        this.name = name;
        this.Score = Score;
        this.age = age;

        System.out.println("姓名:"+ this.name + "性别:" + this.Sex + "年龄:"+ this.age + "成绩:" + this.Score);
    }
    public void type() {
        System.out.println("吃饭");
    }
    public void sleep() {

        System.out.println("睡觉");
    }
}

class Student {

    public String name;
    public int age;
    public char Sex;
    public int Score;

    public void show() {
        this.doClass();
        this.doHomeWorld();
        System.out.println("姓名:" + this.name + " " + "年龄:" + this.age + " " + "性别:" + this.Sex +" " + "成绩:" + this.Score + " ");
    }
    public void doClass() {
        System.out.println("学习");
    }

    public void doHomeWorld() {
        System.out.println("写作业");
    }
}


public class TestDemo {
    public static void main(String[] args) {
        Student stu = new Student();
        Student stu1 = new Student();

        stu.name = "wenxiwen";
        stu.age = 19;
        stu.Score = 95;
        stu.Sex = '男';
        stu.show();

        System.out.println("============================================");

        stu1.name = "gaobo";
        stu1.age = 21;
        stu1.Sex = '男';
        stu1.Score = 99;
        stu1.show();

    }
  /*  public static void main2(String[] args) {
        Person per = new Person();

        per.Myprint("温习文",20,'男',90);

    }*/
    /*public static void main2(String[] args) {
        Person per = new Person();

        per.Myprint("温习文",20,'男',90);
        per.sleep();
        per.type();
    }*/
   /* public static void main1(String[] args) {
        Person per = new Person();
        per.age = 20;
        per.name = "温习文";
        per.Score = 90;
        per.Sex = '男';

        per.Myprint();
        per.sleep();
        per.type();
    }*/
}